import { http } from '@/utils/http'
export const getPatient = (data: any) => {
  
  return http<any>({
    method: 'GET',
    url: `/queryFile?page=${data.page}&pageSize=${data.pageSize}&name=${data.text}&idNumber=${data.text}&phoneNumber=${data.text}`,
  })
}
export const getPatientbyname = (data: any) => {
  return http<any>({
    method: 'GET',
    url: `/queryFile?page=${data.page}&pageSize=${data.pageSize}&name=${data.text}&idNumber=${''}&phoneNumber=${''}`
  })
}
export const getPatientbyid = (data: any) => {
  return http<any>({
    method: 'GET',
    url: `/queryFile?page=${data.page}&pageSize=${data.pageSize}&name=${''}&idNumber=${data.text}&phoneNumber=${''}`
  })
}
export const getPatientbyphone = (data: any) => {
  return http<any>({
    method: 'GET',
    url: `/queryFile?page=${data.page}&pageSize=${data.pageSize}&name=${''}&idNumber=${''}&phoneNumber=${data.text}`
  })
}
export const queryHome = (data: any) => {
  return http<any>({
    method: 'GET',
    url: `/queryHomeFile?idNumber=${data}`
  })

}
export const createhome = (data: any) => {
  return http<any>({
    method: 'POST',
    url: '/createHomeFile',
    data
  })
}
export const deletemember = (data: any) => {
  return http<any>({
    method: 'POST',
    url: '/updateHomeFile',
    data
  })
}